//
//  ListView.swift
//  SwiftUI-CTao
//
//  Created by 涛 on 2019/9/17.
//  Copyright © 2019 涛. All rights reserved.
//

import SwiftUI

struct ListView: View {
    var body: some View {
        List {
            Section {
                RowView(title: "list1", description: "1")
            }
            Section {
                RowView(title: "list2", description: "1")

            }
            Section {
                RowView(title: "list3", description: "1")
            }
        }
//        .listStyle(GroupedListStyle.init())
    }
}

struct ListView_Previews: PreviewProvider {
    static var previews: some View {
        ListView()
    }
}
